package com.ruoyi.system.domain.ro;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.valid.ValidInsertGroup;
import com.ruoyi.common.valid.ValidUpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 关系记录（关注、收藏、点赞）业务对象 bs_relation
 *
 * @author ruoyi
 * @date 2023-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "关系记录（关注、收藏、点赞）业务", description = "关系记录（关注、收藏、点赞）业务入参")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BsRelationRO extends BaseEntity {

    @NotNull(message = "不能为空", groups = {ValidUpdateGroup.class})
    @ApiModelProperty(value = "id")
    private Long id;

    @NotBlank(message = "customer_attention游客关注  strategy_like攻略点赞 strategy_collect攻略收藏不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "customer_attention游客关注  strategy_like攻略点赞 strategy_collect攻略收藏", hidden = true)
    private String type;

    @NotBlank(message = "创建人id不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "创建人id", hidden = true)
    private Long createById;

    @NotBlank(message = "目标id不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "目标id:关注或取关用户id 点赞或取消点赞作品id 收藏或取消收藏作品id")
    private String aimId;

    @ApiModelProperty(value = "逻辑删除字段 0：正常 1：删除", hidden = true)
    private String delFlag;


}
